package com.lishilin.gulimall.member.feign;


import com.lishilin.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-coupon")  //要调用注册中心nacos中名为gulimall-coupon的服务
public interface CouponFeignService {
//    如果调用了/coupon/coupon/member/list这个地址的接口就会去注册中心中找gulimall-coupon中的这个接口
    @RequestMapping("/coupon/coupon/member/list")
    public R membercoupons();
}